import request from "@/utils/request";

/**
 * 获取用户分页列表
 * @param page 页码
 * @param limit 每页数量
 * @param searchParams 包含搜索条件的对象 {username: 'xxx'}
 * @returns UserPageListModel
 */

const $Api: any = {};
$Api.getUserList = (page: number, limit: number, searchParams: object) => {
  return request.get<any, any>("/acl/user" + `/${page}/${limit}`, {
    params: searchParams,
  });
};

export default $Api;
